home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
SWAG
/
SWAGA_C
/
COMM.SWG
/
0018_Serial Base Addresses.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-08-18
|
484b
|
15 lines
FUNCTION Serial_Base_Addr(COM_Port : byte) : word;
{ DESCRIPTION:
Base address for four serial ports.
SAMPLE CALL:
NW := Serial_Base_Addr(1);
RETURNS:
The base address for the specified serial port.
NOTES:
If the port is not used, then the returned value will be 0 (zero).
The aceptable values for COM_Port are: 1,2,3 and 4. }
BEGIN { Serial_Base_Addr }
Serial_Base_Addr := MemW[$0000:$0400 + Pred(COM_Port) * 2];
END; { Serial_Base_Addr }